﻿<%@ Control Language="C#" Inherits="Natrue.Web.MVC.AuthViewUserControl" %>
<%@ Import Namespace="CostTrade.BusinessLayer" %>

<input type="checkbox" name="grouphidden" ware="WR" pk="" />

<input type="hidden" name="ware{0}" value="" />
<input type="hidden" name="pkey{0}" value="" />
<input type="text" name="ebc{0}" value="" />
<input type="text" name="bc{0}" value="" />
<input type="text" name="tc{0}" value="" />
<input type="text" name="op{0}" value="" />
<input type="text" name="tp{0}" value="" />

<script language="javascript" type="text/javascript">

    function removeWare() {
        if (!confirm("您确定要删除所选择的商品吗?")) return;
        $("input[type=checkbox][ware=WR][@checked]").each(function(i, o) {
            if (o.pk != "") {
                $.get("/WaresLibrary/RemoveOrderWares/" + o.pk, {mKey:'', reget: Math.random() }, function(result) { });
            }
        });
        $("input[type=checkbox][ware=WR][@checked]").remove();
    }

</script>